package org.sample.dataconsumer.client;

import org.sample.dataconsumer.model.User;
import org.springframework.stereotype.Component;

@Component
public class UserFeignClientFallback implements UserFeignClient {

	@Override
	public User getUser(String id) {

		User user = new User();
		user.setId(-1L);
		user.setUserName("Default");

		return user;
	}

}
